package com.mew.common.rest;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.*;

/**
 * @Date 2019/8/22 0022
 **/
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class PlayingMessage extends ZebraBaseMessage<PlayingMessage> {

    private int gameId;
    private int roomId;
    private int gameType; //游戏类型
    private int remainTime; //剩余时间


    private int stateCode; // 不发前端

    @Override
    public void write(ByteBuf b) {

         writeInt(b, this.gameId);
         writeInt(b, this.roomId);
         writeInt(b, this.gameType);
         writeInt(b, this.remainTime);
    }

    @Override
    public PlayingMessage read(ByteBuf b) {
        return null;
    }
}
